/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package daa.levelup.Window;

import java.net.InetAddress;

/**
 *
 * @author user
 */
public class GetIP
{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)
    {       
        
          MUFrame tf = new MUFrame();
        tf.setVisible(true);
       String IP = "";
      try {
       IP = InetAddress.getLocalHost().getHostAddress();
       
      }
      catch (Exception e) {
        IP = "Error finding IP";
}
    }
    public void result (String IP){
        System.out.println(IP);
    }
}
   
  
    

